import requests
from bs4 import BeautifulSoup
import selenium
import re
from urllib.parse import urlencode
##print("ok")
##
##
root_url="https://edith.xiaohongshu.com/api/sns/web/v2/comment/page"

root_url="https://edith.xiaohongshu.com/api/sns/web/v2/comment/page?note_id=64f6e707000000001e020e38&cursor=&top_comment_id=&image_formats=jpg,webp,avif"

data={
	"note_id":"64f6e707000000001e020e38",
	"cursor":"",
	"top_comment_id":"",
	"image_formats":"jpg,webp,avif"
	}

##cookie

cookies={
"web_session":"0400694fcf933f64de03e95c03344bbb5a775e"
	}
r=requests.get(root_url,cookies=cookies)
if r.status_code !=200:
	print("error, return status_code is not 200",root_url)
##print(r.text)
obj=r.json()["msg"]
print(obj)